import React, { Component } from 'react'
import Style from "../style/getdom.module.css" // 后缀名只可以省略js和jsx
// 模块化css ,也是css in js 的方式
const style = { // css in js
    'color':"red"
}
 class Getdom extends Component {
  componentDidMount(){
      console.log(this.myref,111);
  }
  render() {
    return (
      <div>getdom
          <div ref={(ref)=> this.myref =ref } style={style}>1111
          </div>

          <h1 className={Style.h1}>asdasdas</h1>
      </div>
    )
  }
}

export default Getdom